﻿using System;
using System.Collections.Generic;
using System.Text;
using Portal.Common.Interface;
using System.Collections;
using Portal.Common.Entity;

namespace Portal.Logic
{
    class InboxReadLogic:IInboxRead
    {

        public List<InboxReadEntity> GetList(string userCode,int status)
        {
            Hashtable ht = new Hashtable();
            ht.Add("userCode", userCode);
            if (status == 1)
            {
                return DataHelper.Instance().GetList<InboxReadEntity>("InboxReadLogic_GetWellTaskList", ht);
            }
            else if (status == 0)
            {
                return DataHelper.Instance().GetList<InboxReadEntity>("InboxReadLogic_GetReadList", ht);
            }
            else 
            {
                return new List<InboxReadEntity>();
            }
        }
    }
}
